using Common.Enum;
using SProject.Rule;

namespace SProject.Paramter
{
	public class RuleFactory
	{
		public static SProject.Rule.Rule CreateRule(EProjectType type)
		{
			SProject.Rule.Rule rule = null;
			switch (type)
			{
			case EProjectType.Melt:
				return new MeltRule();
			case EProjectType.HRM:
				return new HRMRule();
			case EProjectType.AD:
				return new ADRule();
			case EProjectType.RQ:
				return new RQRule();
			case EProjectType.TQ:
				return new AQRule();
			case EProjectType.IA:
				return new AQRule();
			default:
				return new AQRule();
			}
		}
	}
}
